package cn.tx.service.Impl;

import cn.tx.dao.Student1Dao;
import cn.tx.model.Student1;
import cn.tx.service.Student1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Student1ServiceImpl implements Student1Service {

    @Autowired
     public Student1Dao student1Dao;

    @Override
    public Student1 findByUserName(String username) {
        return student1Dao.findByUserName(username);
    }


    @Override
    public int addStudent1(Student1 student1) {
        return student1Dao.addStudent1(student1);
    }

    @Override
    public List<Student1> findList(Map<String, Object> querymap) {
        return student1Dao.findList(querymap);
    }

    @Override
    public int edit(Student1 student1) {
        return student1Dao.edit(student1);
    }
    @Override
    public List<Student1> findAll() {
        return student1Dao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return student1Dao.findTotal(querymap);
    }

    @Override
    public int updateStudent1ById(Student1 student1) {
        return student1Dao.updateStudent1ById(student1);
    }

    @Override
    public int delete(String ids) {
        return student1Dao.delete(ids);
    }

}
